<%@ page contentType="text/html;charset=UTF-8" %>

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title><g:message code="default.login" /> | <g:message code="default.title" /></title>
</head>

<body>
<div class="body">
  <g:form action="doLogin" method="post">
    <div class="dialog">
      <h1>Ingrese sus datos:</h1>
      <table class="userForm">
        <tr class='prop'>
          <td valign='top' class="name">
            <label for='email'>Email:</label>
          </td>
          <td valign='top' class="value">
            <input id="email" type='text' name='email' value='${user?.email}'/></td>
        </tr>
        <tr class='prop'>
          <td valign='top' class="name">
            <label for='password'>Password:</label>
          </td>
          <td valign='top' class="value">
            <input id="password" type='password' name='password'
                   value='${user?.password}'/>
          </td>
        </tr>

      </table>
    </div>

    <div class="buttons">
      <span class="button">
        <input type="submit" value="Login"/>
      </span>
    </div>
  </g:form>

    <script type="text/javascript" language="javascript">
        document.getElementById("email").focus();
    </script>

</div>
</body>
</html>